package com.example.demo.TakeMaterial.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
public class OutForm implements Serializable  {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String requisitionId;

    private String name;

    private String specification;

    private String unit;

    private String position;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime outDate;

    private Integer outNum;

    private String purpose;

    private String receiver;

    private Integer storeNum;

    private String remark;
}
